package com.bookmanager.www.common.DTO;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: 风离
 * @Date: 2021/09/18/13:42
 * @Description:
 */
@Getter
@Setter
@ToString
public class UserDTO {

    @NotNull(message = "用户名不能为空")
    @NotBlank(message = "用户名不能为空字符串")
    @Size(min = 4,max = 11)
    private String username;

    @NotNull(message = "密码不能为空")
    @Size(min = 6,max = 12)
    private String password;
}
